<? ob_start(); ?>
<?php
	require_once "config/koneksi.php";
	require_once "class/kategori.php";
	require_once "class/toko.php";
	$Kategori_Dao=new Kategori_Dao();
	$kategori_list=$Kategori_Dao->get_all();
	$Toko_Dao = new Toko_Dao ();
	$toko_list=$Toko_Dao->get_all();
?>
<html>
<head>
<script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title> WOS.com </title>
<link rel="shortcut icon" href="images/favicon.jpg" />

<style type="text/css">
<!--
a:link {
	color: #000000;
}
a:visited {
	color: #000000;
}
a:hover {
	color: red;
}
a:active {
	color: red;
}
body {
	background-color: #000000;
}
-->
</style>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script src="js/superfish.js" type="text/javascript"></script>
<script src="js/hoverIntent.js" type="text/javascript"></script>

<script src="js/clock.js" type="text/javascript"></script>
<script src="js/jquery-1.4.js" type="text/javascript"></script>
	<script type="text/javascript">
      $(document).ready(function(){
			   $('ul.nav').superfish();
		  });
  </script>

<script src="js/headline.js" type="text/javascript"></script>
  <script type="text/javascript"> 
      $(document).ready(function(){
	  		bukaContent($('#slideAwal'),'div1');			
	    });
	</script>

<script src="js/jquery.fancybox.js" type="text/javascript"></script>
<script src="js/jquery.mousewheel.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			$("a#galeri").fancybox({
				'titlePosition'	: 'inside'
			});
		});
  </script>
	  
<script src="js/tabs.js" type="text/javascript"></script>
<script src="js/newsticker.js" type="text/javascript"></script>

</head>
<title> WOS.Com, Pusat Oleh-oleh Surabaya </title>
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>

<body onload="startclock()">
	<div id="container">
<div id="container">
<div id="wrapper">
	<div id="top">
	<div class="logo"><a href="?"<span>WOS</span>.Com <br>Pusat Oleh-Oleh Surabaya</br></a></div>
        <!-- motto -->
				<ul class="motto">
		        	<li class="left">&nbsp;</li>
		        	<li><div class="intro"><p><font face=tahoma size=2><span id="date"></span> <span id="clock"></span></font></p>
		        	<form method="POST" action="?menu=tcari"> <!-- form pencarian -->
					<div>
					   <input type="text" name="kata" maxlength="50" value="Pencarian..." onblur="if(this.value=='') this.value='Pencarian...';" onfocus="if(this.value=='Pencarian...') this.value='';" />
					   <input type="submit" value="Go" />
					</div>
				</form></li>
				
				</ul> <!-- / motto -->
		    </div> <!-- / top -->
      <!-- MENU -->
	<ul class="nav">
	<li><a href=?>Beranda</a></li>
	<li><a href=?menu=tentang_kami>Tentang Kami</a></li>
	<li><a href=?menu=view_toko>Toko</a></li>
	<li><a href=?menu=cara_pemesanan>Cara Pemesanan</a></li>
	<li><a href=?menu=cara_pembayaran>Cara Pembayaran</a></li>
	<li><a href=?menu=hubungi_kami>Hubungi Kami</a></li>
	<li><a href=?menu=formlogin>Login Member</a>
	</li>
	<li class="right"></li>
	<li><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			  </li>
	</ul>	
	
			<!-- HEADER -->
			<img src="http://localhost/wos/images/gambar_header/a_<?php echo(rand(1,4)); ?>.jpg" width=1000px height=300px alt= "aaa" />
			<div id="wrapper">
	<ul class="nav">

<table align=center border=1 cellpadding=0 cellspacing=0 width=100%><tr><td align=center height=31>
<table width=880><tr><td>
<marquee><font face=tahoma size=3 color=#FFFFFF>Selamat Datang di <span class="style29">Website Kami!</span> 
Kami berusaha untuk memberikan informasi dan pelayanan yang terbaik bagi anda! <span class="style29">SELAMAT BERBELANJA</span></marquee>
</td></tr></table>
</td></tr></table></ul>
	<table align="center" width="100%" height=900 cellpadding="0" cellspacing="0">
	<tr>
			<td width="250" bgcolor="#708090" style="border-left-style: none; border-left-width: medium" align="center" valign="top">
<br>
		   <div id="content-kanan">
            <div id="kotakjudul">
              <span class="judulhead">Kategori Produk</span>
            </div>
            <div id="kotakisi">
              <table cellpedding="2" width="100%" border="0" cellspacing="4" >
              <tbody>  
			  <?php
				 
                  foreach ($kategori_list as $Kategori){
					echo "<tr><td class='garisbawah'><a href='?menu=view_produk&&id_kategori=".$Kategori->id_kategori."'>".$Kategori->kategori."</a><br/></td></tr>";
                  }
                ?>
              </tbody>
              </table>
            </div><!-- / end kategori  -->
<br>
		   <div id="content-kanan">
            <div id="kotakjudul">
              <span class="judulhead">Daftar Toko</span>
            </div>
            <div id="kotakisi">
              <table cellpedding="2" width="100%" border="0" cellspacing="4">
              <tbody>  
                <?php
                 foreach ($toko_list as $Toko){
				 echo "<tr><td class='garisbawah'><a href='?menu=view_detiltoko&&id_toko=".$Toko->id_toko."'>".$Toko->nama_toko."</a><br/></td></tr>";
                 }
                ?>
              </tbody>
              </table>
            </div><!-- / end toko -->
					  
		<td width="100%" bgcolor="#708090" valign="top" align="center">
		&nbsp;
	  <table align="center" width="100%" border="0"><tr><td><?php include "menu.php";?></td></tr></table></td>
	`	<td width="250" bgcolor="#708090" style="border-left-style: none; border-left-width: medium" align="center" valign="top">
			<br>
			<div id="content-kiri">
			<div id="kotakjudul">
            <span class="judulhead">Statistik Pengunjung</span>
            </div>
			<div id="kotakisi">
			<?include"statistik.php";?> 
			</div>
			</div>
			</p>
			&nbsp;
			<div id ="content-kiri">
			<div id="kotakjudul">
            <span class="judulhead">Polling</span>
            </div>
			<div id="kotakisi">
			<?include"polling.php";?>
			</div>
			</div>
			</p>
			 &nbsp;
			<div id ="content-kiri">
			<div id="kotakjudul">
            <span class="judulhead">Iklan</span>
            </div>
			<div id="kotakisi">
			</div>
			</div>
			</p></td>
	</tr>
	</table>
			<!-- FOOTER -->
			<div id="footer">
				<div class="foot_content">
					<p><br>WOS.COM</p>
				</div>
			</div><!-- / end footer -->
		</div><!-- / end wrapper -->
	</div><!-- / end container -->
	</div>
</body>

</html>
<? ob_flush(); ?>